﻿<?php
define("Z_TIMEZONE", "Asia/Chongqing");
date_default_timezone_set(Z_TIMEZONE);
define('H_INDEX',"/index.php/Home/Index/index");
defined('Z_TIME') or define('Z_TIME', time());
define('Z_TIME_STR', date('Y-m-d H:i:s'));

defined('Z_DR') or define('Z_DR', rtrim(!empty($_SERVER['DOCUMENT_ROOT']) ? $_SERVER['DOCUMENT_ROOT'] : dirname(__FILE__), '\\/'));

define('Z_ERROR_LOG_ADMINISTRATION', dirname(__FILE__) . '/error-logs/administration/' . date('Y-m-d') . '.log');
define('Z_ERROR_LOG_MEMBER', dirname(__FILE__) . '/error-logs/member/' . date('Y-m-d') . '.log');
define('Z_ERROR_LOG_PAY', dirname(__FILE__) . '/error-logs/pay/' . date('Y-m-d') . '.log');
defined('Z_IP') || define('Z_IP', get_real_ip());
define('Z_MAIL_TEMPLATE_DIR', dirname(__FILE__) . '/mail');
defined('Z_DOMAIN') or define('Z_DOMAIN', $_SERVER['SERVER_NAME'].":".$_SERVER['SERVER_PORT']);
defined('CRLF') || define('CRLF', "\r\n");
define('Z_SMTP_E_SOCKET', 1);
define('Z_SMTP_E_CONNECT', 2);
define('Z_SMTP_E_SEND', 3);
define('Z_SMTP_E_STATUS', 4);
define('Z_SMTP_E_HELO', 8);
define('Z_SMTP_E_EHLO', 16);
define('Z_SMTP_E_AUTH', 32);
define('Z_SMTP_E_USERNAME', 64);
define('Z_SMTP_E_PASSWORD', 128);
define('Z_SMTP_E_FROM', 256);
define('Z_SMTP_E_RCPT_TO', 512);
define('Z_SMTP_E_DATA', 1024);

return array(
    'URL_CASE_INSENSITIVE' =>true, // 不区分大小写
	//'配置项'=>'配置值'
	'DB_TYPE'               =>  'mysql',     // 数据库类型
    'DB_HOST'               =>  '47.104.141.139', // 服务器地址
 	'DB_NAME'               =>  'xpay',          // 数据库名
    'DB_USER'               =>  'xpay',      // 用户名
    'DB_PWD'                =>  '4tyY3JKSxA',          // 密码
    'DB_PORT'               =>  '3306',        // 端口
    'DB_CHARSET'            => 'utf8',// 网站编码
    'DB_PREFIX'             =>  '',    // 数据库表前
    'APP_DEBUG'     =>  false,// 开启调试模式
    "LOAD_EXT_FILE" => "log,check,cache", // 加载共同函数
    'DEFAULT_FILTER' => 'trim,htmlspecialchars', // 设置默认过滤
    //'URL_HTML_SUFFIX'       => '',
    //七牛存储功能
    'STORAGE_QI_NIU' => array (
        'maxSize' => 5 * 1024 * 1024,//文件大小
        'rootPath' => '',
        'saveName' => array ('uniqid', ''),
        'savePath' => 'shareshop',
        'exts'       =>    array('jpg', 'gif', 'png', 'jpeg'),
        'driver' => 'Qiniu',
        'driverConfig' => array (
            'accessKey' => 'CK2AUh5aUUGAukACON4UK6Dp4XUawSbPRGEmOpTk',
            'secretKey' => 'dzE7W8HPpQr5gEa5Yz03xdXaGCacLSVQUDXNAJeW',
            'domain' => 'p0hct3xqb.bkt.clouddn.com',
            'bucket' => 'wangdai',
        ),
    ),
    'TRANSACTION_NUM_BUY' => array(500, 1000, 3000, 5000, 10000, 30000), //交易金额
    'TRANSACTION_BOND' => 100, //保证金
    'TRANSACTION_NUM_SELL' => array(500, 1000, 3000, 5000, 10000, 30000), //交易金额
    'VIRTUALCURRENCY_BOND' => 100, //保证金
);